# 猜数字游戏
i = 1
import random

SuiJiShu = int(random.randint(1, 100))
while i <= 5:
    i += 1
    GuessNum = int(input('请输入猜测： '))
    if GuessNum == SuiJiShu:
        print('恭喜！！猜测正确')
        print('系统生成随机数为%d' % SuiJiShu)
        exit()
    elif GuessNum > SuiJiShu:
        print('太大了')
    else:
        print('太小了')
print('系统生成随机数为%d' % SuiJiShu)

